package com.learn.remote.http.invoker;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * 《Spring源码深度解析》12.2 HttpInvoker P357
 *  参考：https://blog.csdn.net/quyixiao/article/details/116001039
 */
public class Test {
	public static void main(String[] args) {
		ApplicationContext context = new ClassPathXmlApplicationContext("httpInvoker-client.xml");
		HttpInvokerTestI httpInvokerTestI = (HttpInvokerTestI) context.getBean("remoteService");
		String result = httpInvokerTestI.getTestPo("dddd");
		System.out.println(result);
	}
	/* Output:
	 getTestPo dddd
	 *///~
}
